package com.huarui.companypackage.dao.impl;

import java.util.List;
import java.util.Map;

import org.ewaf.framework.dao.impl.BaseDaoImpl;

import com.huarui.companypackage.dao.IPackageDao;
import com.huarui.companypackage.model.Package;

public class PackageDaoImpl extends BaseDaoImpl implements IPackageDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<Package> getPackagesByCompanyType(Map<String, Integer> map) {
		
		return getSqlMapClientTemplate().queryForList(namespace+".getPackageByCompanyType", map);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<Package> getAllPackages(Map<String, Object> map) {
		return getSqlMapClientTemplate().queryForList(namespace+".getAllPackages", map);
	}

}
